<?php defined('BASEPATH') or exit('No direct script access allowed');

class Home_m extends MY_Model {
	var $slideShow_slug ;
	
	function __construct(){
		parent::__construct();
		$this->slideShow_slug = "slide-show";
	}
	
	function index(){
		return array( "slide"=>$this->getSlideShowImages(), 'accord'=>$this->getAccordingContent() );
	}
	
	function getSlideShowImages(){
		return $this->db->select("FILE.*")
						->from("files AS FILE")
						->join("file_folders AS FOLDER","FILE.folder_id=FOLDER.id")
						->where("FOLDER.slug",$this->slideShow_slug)
						->get()
						->result();
	}
	
	function getAccordingContent(){
		return true;
	}
}